#ifndef EPOLL_SERVER_H
#define EPOLL_SERVER_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/epoll.h>

#define MAX_EVENTS 1024
#define BUFFER_SIZE 4096

typedef struct
{
    int epoll_fd;
    int listen_fd;
} epoll_server_t;

epoll_server_t *epoll_server_init(unsigned short port);
void epoll_server_start(epoll_server_t *server);
void epoll_server_stop(epoll_server_t *server);

#endif // EPOLL_SERVER_H